<template>

<!--  <form id = "pay_form" action="https://apiepay.bstj.com/pay/pc" method="post">

    <input type="hidden" name="developerId" id="developerId" value=""/>
    <input type="hidden" name="data" id="data" value=""/>
    <input type="hidden" name="sign" id="sign" value=""/>
    <input type="hidden" name="version" id="version" value="1.0.0"/>
    <input type="hidden" name="timestamp" id="timestamp" value=""/>
  </form> -->
</template>

<script>
  export default {
    data() {
      return {

      }
    },
    onLoad(option) {
      console.log(option);
	   let  html='<form id = "pay_form" action="'+option.reqUrl+'" method="post">';
			html+='<input type="hidden" name="developerId" id="developerId" value="'+option.developerId+'"/>'
			html+='<input type="hidden" name="data" id="data" value="'+option.data+'"/>'
			html+='<input type="hidden" name="sign" id="sign" value="'+option.sign+'"/>'
			html+='<input type="hidden" name="version" id="version" value="'+option.version+'"/>'
            html+='<input type="hidden" name="timestamp" id="timestamp" value="'+option.timestamp+'"/>'
	        html+='</form>';
			 console.log(html);
	   document.querySelector('body').innerHTML = html;
	   document.forms[0].submit();

    },
  }
</script>

<style scoped>

</style>
